package com.jic.market.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.market.entity.PromotionMutex;
import com.jic.market.request.PromotionMutexRequest;
import com.jic.market.response.PromotionMutexDetailResponse;

import java.util.List;

/**
* 促销商品互斥表
* @author : 
* @email : 
* @since : 2020-05-09 02:47:45
* @version : v1.0.0
*/
public interface PromotionMutexService {

    long insert(PromotionMutex promotionMutex);

    long delete(Long id);

    long update(PromotionMutex promotionMutex);

    PromotionMutex queryByPrimaryKey(Long id);

    List<PromotionMutex> query(PromotionMutex promotionMutex);

    PageResult<PromotionMutex> queryPage(PromotionMutex promotionMutex, Page pageQuery);

    PageResult<PromotionMutexDetailResponse> getPromotionMutexListByProductId(PromotionMutexRequest request);

    int deleteByPromotionProductId(Long promotionProductId);

    int deleteByPromotionIdAndPromType(Long promotionId, Integer promType);

    int insertBatch(List<PromotionMutex> collect);
}